#include "AboutDlg.h"
#include <QDesktopServices>
#include <QUrl>
#include <QLabel>
#include <QMessageBox>

AboutDlg::AboutDlg(QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
	this->setFixedSize(width(), height());
	this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);

	//ui.labelLogo->setText("1111");
	QPixmap pix = QPixmap(":/resources/logo.png");
	pix = pix.scaled(ui.label_logo->width(), ui.label_logo->height());
	ui.label_logo->setPixmap(pix);
	//ui.label_author->setText("<a href=\"https://blog.csdn.net/yao_hou?type=blog\">https://blog.csdn.net/yao_hou?type=blog</a>");
	//ui.label_author->setOpenExternalLinks(true);
	//ui.label_author->setTextFormat(Qt::RichText);
}

AboutDlg::~AboutDlg()
{}

void AboutDlg::on_btnLook_clicked()
{
	QMessageBox::information(this, tr("title"), tr("read readme.md"));
}
